<!DOCTYPE html>
<html>
<head>
    <title>js面向对象--继承</title>
    <meta charset="utf-8"/>
    <script>
        function Persion(){
            //alert("111");
        }
        Persion.prototype.name = "Nike";
        Persion.prototype.age = 30;
        Persion.prototype.job = "SoftWare";
        Persion.prototype.sayName = function(){
            alert(this.name);
        }

//        alert(Persion.prototype);
//        Persion.prototype.constructor;
//        alert(Persion.prototype.constructor);

        var per1 = new Persion();
        //per1.sayName();
        alert(per1.__proto__);
        alert(per1.__proto__.constructor );
        alert(Persion.prototype.isPrototypeOf(per1));
        var per2 = new Persion();
       // per2.sayName();
       // alert(per1.sayName == per2.sayName);
    </script>
</head>
<body>
</body>
</html>